Skip to content

feat: add support for input overrides for attachments#1383

Open
norman-le wants to merge 6 commits intomainfrom
feat/jar-9198-input-override-support-conversational-agent-eval-attachments
Open

feat: add support for input overrides for attachments#1383
norman-le wants to merge 6 commits intomainfrom
feat/jar-9198-input-override-support-conversational-agent-eval-attachments

Conversation

@norman-le
Copy link

@norman-le norman-le commented Feb 26, 2026

What changed?

A few sentences describing the changes made in this pull request.
Piggybacking off of changes made for autonomous: https://github.com/UiPath/Agents/pull/4112

How has this been tested?

Autonomous working still:
image

and in UI:
image

Conversational:
In UI:
image

Working in UV run (this PR: #1383)
Ex1:
image

Ex2:
Eval set file from SW:
image

using the following args that I log from Agents BE (this PR: https://github.com/UiPath/Agents/pull/4517) since it doesnt yet send a job to orchestrator

uv run uipath eval agent.json evals/eval-sets/evaluation-set-1772127016991.json --eval-ids '["453d4313-5cab-4f0d-b447-d26cffe72717"]' --eval-set-run-id 9f503071-e9dd-41c8-8c2a-5871cb23c4f6 --model-settings-id default --input-overrides '{"a3058351-8e3e-42dd-b298-26c87d8a5681":{"files":[{"ID":"24d24699-c158-47dc-3563-08de754e2ecf","FullName":"Eva by Haim Sutin.jpg","MimeType":"image/jpeg"}]},"21bf7c6a-3c8e-42e2-b399-ad3f3e50fce1":{"files":[{"ID":"e312c0a1-41be-4cb7-c90d-08de754d5847","FullName":"Updated_protocol_sketch.pdf","MimeType":"application/pdf"},{"ID":"2c5ffaaa-fbfe-4b7e-c90c-08de754d5847","FullName":"Updated_protocol_sketch.pdf (2).pdf","MimeType":"application/pdf"}]},"453d4313-5cab-4f0d-b447-d26cffe72717":{"files":[{"ID":"5b9efea5-a82f-42fa-3564-08de754e2ecf","FullName":"prince - JPEG.jpeg","MimeType":"image/jpeg"},{"ID":"24d24699-c158-47dc-3563-08de754e2ecf","FullName":"Eva by Haim Sutin.jpg","MimeType":"image/jpeg"}]}}' --output-file 453d-output.json

Result:
image

Copilot AI review requested due to automatic review settings February 26, 2026 23:41
@github-actions github-actions bot added test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-llamaindex Triggers tests in the uipath-llamaindex-python repository labels Feb 26, 2026
@norman-le norman-le requested a review from AAgnihotry February 26, 2026 23:42
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request adds support for input overrides for attachments in evaluation sets, building on previous autonomous mode changes. The feature allows file IDs, names, and MIME types to be overridden before conversational inputs are converted to message format, enabling flexible attachment handling during evaluations.

Changes:

  • Added _apply_file_overrides_to_conversational_inputs function to match and update attachment fields based on FullName
  • Integrated input_overrides parameter through the eval command flow to support file overrides
  • Implemented attachment content part creation with URN-based file references for user messages

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
src/uipath/eval/helpers.py Added helper function to apply file overrides to conversational inputs before message conversion, integrated into eval set loading
src/uipath/_cli/cli_eval.py Passed input_overrides parameter to load_eval_set calls for override support
src/uipath/_cli/_evals/_conversational_utils.py Implemented attachment-to-content-part conversion with UiPathExternalValue for user messages
tests/cli/eval/test_conversational_utils.py Added comprehensive tests for attachment conversion including single/multiple attachments, empty text cases, and unique ID generation

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-llamaindex Triggers tests in the uipath-llamaindex-python repository

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants